#ifndef __APP_CJSON_H
#define __APP_CJSON_H


#include "api_nbiot.h"        

#include "cJSON.h"


enum cjson_name{
    MSGID=0,
	SEQ,
	NUM,
	IMEI,
	ICCID,
	DEV_STATUS,
	BATVOL,
	REPORT,
	RSII,
	DAYVOL,
	MONVOL,
	EVENTLOG,
	CMD,
	HEX,
	MD5,
    VER,
	COM,
  
};


typedef struct {
	
const	char  *name;
	char  *valuestring;
	int   valueint;
    char  type;
	
}report_Data_Struct;


typedef struct {
	
   char   num_buff[13];
   char   imei_buff[16];
   char   iccid_buff[21];
   char   com_buff[6];	
   char   md5[36];	
   char   hex_dat[513];	  
   char   monvol_dayvol_eventlog_buff[650];
   char   ver[7];
}report_stringbuff_Struct;





void  cJSON_LiveData_encode (void *pdata,char *json_Data_printOut);
void APP_cjson_parseArray(char * pJson);



extern report_Data_Struct  report_Data_buf[];







#endif

